package md.mru.transfer.old.domain;


import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * acorduri la contract
 */
@Entity
@Table(name="AGR", schema = "mru"
)
public class Agr implements Serializable {

    @Id
    @Column(name = "id", unique = true, nullable = false, precision = 10, scale = 0)
    private long id;

    @JoinColumn(name = "CNT_NBR", nullable = false)
    @Column(name = "CNT_NBR")
    private long contract;//contract

    @Column(name = "NBR", length = 20)
    private String agreementNumber;//numar acord

    @Temporal(TemporalType.DATE)
    @Column(name = "DTE", length = 7)
    private Date agreementDate;//data acord

    @Column(name = "DSC")
    private String description;//descriere

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getContract() {
        return contract;
    }

    public void setContract(long contract) {
        this.contract = contract;
    }

    public String getAgreementNumber() {
        return agreementNumber;
    }

    public void setAgreementNumber(String agreementNumber) {
        this.agreementNumber = agreementNumber;
    }

    public Date getAgreementDate() {
        return agreementDate;
    }

    public void setAgreementDate(Date agreementDate) {
        this.agreementDate = agreementDate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}


